package cn.net.cfss.fgbp.face.console;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

//@ServletComponentScan
@EnableCircuitBreaker
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
@ComponentScan(value = {"cn.net.cfss.fgbp.face.console","cn.net.cfss.fgbp.base.config"})//组件扫描
@EnableAsync
@EnableFeignClients(basePackages = {"cn.net.cfss.fgbp.api.console.inte","cn.net.cfss.fgbp.spi.manage.inte"})
public class ConsoleApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(ConsoleApplication.class).run(args);
    }

}
